package rmiserver;

import java.io.IOException;
import java.net.InetAddress;

import messages.Message;
import net.ClientCommunicator;

public class RMIClientCommunicator implements ClientCommunicator {

	public RMIClientCommunicator(ClientRemote client) {
		this.client = client;
	}

	public void close() {
		client = null;	
	}

	public InetAddress getAddress() {	
		// Do nothing. Not needed.
		return null;
	}

	public Message receive() {
		// Do nothing. Not needed.
		return null;
	}

	public void send(Message message) throws IOException {
		client.send(message);	
	}

	
	private ClientRemote client;
}
